package com.manager.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.manager.common.result.Result;
import com.manager.model.model.User;


import javax.servlet.http.HttpServletResponse;
import java.util.List;


public interface UserUserService extends IService<User> {
    //通过id获取用户信息
    Result<User> getUserById(String id);
    //分页查询销售
    Result<Page> pageSellers(int page, int pageSize);
    //添加销售
    Result<String> addSeller(User user);
    //修改销售
    Result<String> modifySellerInfo(User user);
    //批量禁用销售
    Result<String> disableSellers(List<String> ids);
    //导出跟进内容
    void exportUpdateContent(HttpServletResponse response);
    //修改基本资料
    Result modifyInfo(String account, String name);
    //修改密码
    Result modifyPassword(String account, String oldPassword, String newPassword);
    //批量启用销售
    Result<String> ableSellers(List<String> ids);
    //导出销售信息
    void export(HttpServletResponse response);
}
